import { abbreviationPattern } from './pattern';

export function getAbbreviation (str: string) {
  const matchedArray = str.match(abbreviationPattern)
  return matchedArray
    ? matchedArray[1]
    : null
}
